package org.dromara.book.domain.bo;

import org.dromara.book.domain.SzlyBaseLanguage;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 语种码业务对象 szly_base_language
 *
 * @author LionLi
 * @date 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SzlyBaseLanguage.class, reverseConvertGenerate = false)
public class SzlyBaseLanguageBo extends BaseEntity {

    /**
     * 参数主键
     */
    @NotNull(message = "参数主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 状态
     */
    @NotBlank(message = "语种状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 语种名称
     */
    @NotBlank(message = "语种名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 语种编号
     */
    @NotBlank(message = "语种编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;


}
